package com.springboot.cloud.sysapps.exam.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springboot.cloud.sysapps.exam.dao.ModuleMapper;
import com.springboot.cloud.sysapps.exam.entity.po.Module;
import com.springboot.cloud.sysapps.exam.service.IModuleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ModuleService extends ServiceImpl<ModuleMapper, Module> implements IModuleService {
    @Override
    public List<Module> findBySubjectId(String subjectId) {
        QueryWrapper<Module> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("subjects_id",subjectId);
        return this.list(queryWrapper);
    }
}
